<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .divImg {
            display: none;
            background-color: aqua;
            width: 200px;
        }

        p {
            color: lime;
            padding: 0px;
            margin: 0px;
            background-color: yellowgreen;
        }
    </style>
    <script src="1.js"></script>
</head>
<body>

<div style="margin:100px 0px 0px 400px">
    <img src="img/photo/b1.jpg" id="look" style="margin-left: 15px"><br>
    <input type="button" value="选择头像" onclick="displayDiv('disDiv')">
    <div class="divImg" id="disDiv">
        <p>男生头像</p>
        <img src="img/photo/b1.jpg">
        <img src="img/photo/b2.jpg">
        <img src="img/photo/b3.jpg">
        <img src="img/photo/b4.jpg"><br>
        <img src="img/photo/b5.jpg">
        <img src="img/photo/b6.jpg">
        <img src="img/photo/b7.jpg">
        <img src="img/photo/b8.jpg">
        <p>动物头像</p>
        <img src="img/photo/d1.jpg">
        <img src="img/photo/d2.jpg">
        <img src="img/photo/d3.jpg">
        <img src="img/photo/d4.jpg"><br>
        <img src="img/photo/d5.jpg">
        <img src="img/photo/d6.jpg">
        <img src="img/photo/d7.jpg">
        <img src="img/photo/d8.jpg">
        <p>女生头像</p>
        <img src="img/photo/g1.jpg">
        <img src="img/photo/g2.jpg">
        <img src="img/photo/g3.jpg">
        <img src="img/photo/g4.jpg"><br>
        <img src="img/photo/g5.jpg">
        <img src="img/photo/g6.jpg">
        <img src="img/photo/g7.jpg">
        <img src="img/photo/g8.jpg">
    </div>
</div>
</body>
</html>